<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
    CodeFile="home.aspx.vb" Inherits="home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <meta name="keywords" content="songs, lyrics, chords, bands, guitar, music, artists" />
    <meta name="description" content="YobboGuitar: songs, lyrics and chords for all" />
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta name="Author" content="Dr Martin Moxham" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div runat="server" id="div_edit" visible="False" style="position: static; float: none">
        <h2>
            Edit Home Page Text</h2>
        <asp:TextBox ID="TextBox_homePageText" runat="server" Style="margin-top: 0px" Width="100%"
            TextMode="MultiLine"></asp:TextBox>
        <asp:Button ID="Button_saveEdits" runat="server" Text="Save Text" />
        <br />
    </div>
    <div runat="server" id="div_display" style="position: static; float: none">
        <h1>
            Welcome to Yobbo Guitar!</h1>
        <div runat="server" id="div_text">
        </div>
        <div runat="server" id="div_textDate" style="font-size: xx-small; padding-top: 10px;
            padding-bottom: 10px">
        </div>
        <asp:LinkButton ID="LinkButton_editPage" runat="server">Edit this text</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
         <asp:LinkButton ID="LinkButton_siteAdmin" runat="server">Go to site adminstration page</asp:LinkButton>
        <h2>
            Recently Uploaded Songs &nbsp;&nbsp;
            <asp:ImageButton ImageUrl="~/images/rss.png" ID="ImageButton1" ToolTip="RSS feed"
                runat="server" AlternateText="RSS feed" /></h2>
        <asp:GridView ID="GridView_results" AutoGenerateColumns="false" runat="server" BorderStyle="None"
            CellPadding="5" CellSpacing="5" BorderColor="White" BorderWidth="0" HeaderStyle-BorderStyle="None"
            AlternatingRowStyle-BorderStyle="None">
            <Columns>
                <asp:HyperLinkField HeaderText="Song Title" DataTextField="title" DataNavigateUrlFields="ID"
                    DataNavigateUrlFormatString="~\displaySong.aspx?ID={0}" ControlStyle-BorderStyle="None"
                    ItemStyle-BorderStyle="None" HeaderStyle-BorderStyle="None" HeaderStyle-HorizontalAlign="Left" />
                <asp:BoundField HeaderText="Artist" DataField="bandName" ControlStyle-BorderStyle="None"
                    ItemStyle-BorderStyle="None" HeaderStyle-BorderStyle="None" HeaderStyle-HorizontalAlign="Left" />
                <asp:BoundField HeaderText="Genre" DataField="genreName" ControlStyle-BorderStyle="None"
                    ItemStyle-BorderStyle="None" HeaderStyle-BorderStyle="None" HeaderStyle-HorizontalAlign="Left" />
                <asp:BoundField HeaderText="Date Added" DataField="date" ControlStyle-BorderStyle="None"
                    ItemStyle-BorderStyle="None" HeaderStyle-BorderStyle="None" HeaderStyle-HorizontalAlign="Left" />
                <asp:ImageField HeaderText="Rating" DataImageUrlField="roundedRating" DataImageUrlFormatString="~\images\{0}star.png"
                    ControlStyle-BorderStyle="None" ItemStyle-BorderStyle="None" HeaderStyle-BorderStyle="None"
                    HeaderStyle-HorizontalAlign="Left" />
            </Columns>
        </asp:GridView>
    </div>
    <asp:HiddenField ID="HiddenField_IDHomePageText" runat="server" />
</asp:Content>
